package cn.z2huo.knowledge.basic.datatype.$integer.$int;

/**
 * <p>Int 的最大值和最小值
 *
 * @author z2huo
 */
public class IntMaxMin {

    public static void main(String[] args) {
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        String maxBinStr = Integer.toBinaryString(Integer.MAX_VALUE);
        System.out.println(maxBinStr);
        System.out.println(maxBinStr.length());
        String minBinStr = Integer.toBinaryString(Integer.MIN_VALUE);
        System.out.println(minBinStr);
        System.out.println(minBinStr.length());
    }

}
